package com.example.demo.model.order.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author STAHYW
 * @since 2021-10-23
 */
@ApiModel(value="UserOrder对象", description="")
public class UserOrder extends Model<UserOrder> {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "提交时间")
    private LocalDateTime subTime;

    @ApiModelProperty(value = "閲戦")
    private Integer totalMoney;

    @ApiModelProperty(value = "1宸蹭粯娆?2宸查€佽揪 3宸茶瘎浠?")
    private Integer orderStatus;

    @ApiModelProperty(value = "鐠併垹宕熼崣?")
    private String orderNumber;

    private Integer addressId;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public LocalDateTime getSubTime() {
        return subTime;
    }

    public void setSubTime(LocalDateTime subTime) {
        this.subTime = subTime;
    }

    public Integer getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Integer totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Integer getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(Integer orderStatus) {
        this.orderStatus = orderStatus;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public Integer getAddressId() {
        return addressId;
    }

    public void setAddressId(Integer addressId) {
        this.addressId = addressId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "UserOrder{" +
        "id=" + id +
        ", userId=" + userId +
        ", subTime=" + subTime +
        ", totalMoney=" + totalMoney +
        ", orderStatus=" + orderStatus +
        ", orderNumber=" + orderNumber +
        ", addressId=" + addressId +
        "}";
    }
}
